package com.happycolor.qeuip.model;




public class Studentinfo {
	private static final long serialVersionUID = 1L;

/*[CONSTRUCTOR MARKER BEGIN]*/
	public Studentinfo () {
		super();
	}

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String sno;
	private java.lang.String sname;
	private java.lang.String ssex;
	private java.util.Date sbirthday;
	private java.lang.String shome;
	private java.lang.String sparent1;
	private java.lang.String sparent2;
	private java.lang.String sparent1tel;
	private java.lang.String sparent2tel;
	private java.util.Date inschyear;
	private java.lang.Integer lmuser;
	private java.util.Date lmtime;
	private java.lang.Integer dstatus;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="sequence"
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: SNO
	 */
	public java.lang.String getSno () {
		return sno;
	}

	/**
	 * Set the value related to the column: SNO
	 * @param sno the SNO value
	 */
	public void setSno (java.lang.String sno) {
		this.sno = sno;
	}



	/**
	 * Return the value associated with the column: SNAME
	 */
	public java.lang.String getSname () {
		return sname;
	}

	/**
	 * Set the value related to the column: SNAME
	 * @param sname the SNAME value
	 */
	public void setSname (java.lang.String sname) {
		this.sname = sname;
	}



	/**
	 * Return the value associated with the column: SSEX
	 */
	public java.lang.String getSsex () {
		return ssex;
	}

	/**
	 * Set the value related to the column: SSEX
	 * @param ssex the SSEX value
	 */
	public void setSsex (java.lang.String ssex) {
		this.ssex = ssex;
	}



	/**
	 * Return the value associated with the column: SBIRTHDAY
	 */
	public java.util.Date getSbirthday () {
		return sbirthday;
	}

	/**
	 * Set the value related to the column: SBIRTHDAY
	 * @param sbirthday the SBIRTHDAY value
	 */
	public void setSbirthday (java.util.Date sbirthday) {
		this.sbirthday = sbirthday;
	}



	/**
	 * Return the value associated with the column: SHOME
	 */
	public java.lang.String getShome () {
		return shome;
	}

	/**
	 * Set the value related to the column: SHOME
	 * @param shome the SHOME value
	 */
	public void setShome (java.lang.String shome) {
		this.shome = shome;
	}



	/**
	 * Return the value associated with the column: SPARENT1
	 */
	public java.lang.String getSparent1 () {
		return sparent1;
	}

	/**
	 * Set the value related to the column: SPARENT1
	 * @param sparent1 the SPARENT1 value
	 */
	public void setSparent1 (java.lang.String sparent1) {
		this.sparent1 = sparent1;
	}



	/**
	 * Return the value associated with the column: SPARENT2
	 */
	public java.lang.String getSparent2 () {
		return sparent2;
	}

	/**
	 * Set the value related to the column: SPARENT2
	 * @param sparent2 the SPARENT2 value
	 */
	public void setSparent2 (java.lang.String sparent2) {
		this.sparent2 = sparent2;
	}



	/**
	 * Return the value associated with the column: SPARENT1TEL
	 */
	public java.lang.String getSparent1tel () {
		return sparent1tel;
	}

	/**
	 * Set the value related to the column: SPARENT1TEL
	 * @param sparent1tel the SPARENT1TEL value
	 */
	public void setSparent1tel (java.lang.String sparent1tel) {
		this.sparent1tel = sparent1tel;
	}



	/**
	 * Return the value associated with the column: SPARENT2TEL
	 */
	public java.lang.String getSparent2tel () {
		return sparent2tel;
	}

	/**
	 * Set the value related to the column: SPARENT2TEL
	 * @param sparent2tel the SPARENT2TEL value
	 */
	public void setSparent2tel (java.lang.String sparent2tel) {
		this.sparent2tel = sparent2tel;
	}



	/**
	 * Return the value associated with the column: INSCHYEAR
	 */
	public java.util.Date getInschyear () {
		return inschyear;
	}

	/**
	 * Set the value related to the column: INSCHYEAR
	 * @param inschyear the INSCHYEAR value
	 */
	public void setInschyear (java.util.Date inschyear) {
		this.inschyear = inschyear;
	}



	/**
	 * Return the value associated with the column: LMUSER
	 */
	public java.lang.Integer getLmuser () {
		return lmuser;
	}

	/**
	 * Set the value related to the column: LMUSER
	 * @param lmuser the LMUSER value
	 */
	public void setLmuser (java.lang.Integer lmuser) {
		this.lmuser = lmuser;
	}



	/**
	 * Return the value associated with the column: LMTIME
	 */
	public java.util.Date getLmtime () {
		return lmtime;
	}

	/**
	 * Set the value related to the column: LMTIME
	 * @param lmtime the LMTIME value
	 */
	public void setLmtime (java.util.Date lmtime) {
		this.lmtime = lmtime;
	}



	/**
	 * Return the value associated with the column: DSTATUS
	 */
	public java.lang.Integer getDstatus () {
		return dstatus;
	}

	/**
	 * Set the value related to the column: DSTATUS
	 * @param dstatus the DSTATUS value
	 */
	public void setDstatus (java.lang.Integer dstatus) {
		this.dstatus = dstatus;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.happycolor.qeuip.model.Studentinfo)) return false;
		else {
			com.happycolor.qeuip.model.Studentinfo studentinfo = (com.happycolor.qeuip.model.Studentinfo) obj;
			if (null == this.getId() || null == studentinfo.getId()) return false;
			else return (this.getId().equals(studentinfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}



}